package com.biz.primus.model.cart.vo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * ShopCartNumRespVo
 *
 * @author JKLiues
 * @date 2017年10月26日
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("购物车商品数量响应对象")
public class ShopCartNumRespVo implements Serializable {
    private static final long serialVersionUID = -1050711883489382184L;

    /**
     * 商品总数
     */
    private Integer totalNum = 0;

    /**
     * 选中数量
     */
    private Integer selectNum = 0;

    public void addTotalNum(int add) {
        this.totalNum = this.totalNum + add;
    }

    public void addSelectNum(int add) {
        this.selectNum = this.selectNum + add;
    }
}